-- GENERATED SPELL FOR [Southsea Dock Worker] --


function spell0_7857(pUnit, Event) --@Head Crack,n/a--
pUnit:FullCastSpellOnTarget(3148,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7857', 20291, 1)
end

function Sorts_7857(pUnit, Event)
local choix_sorts_7857 = math.random(0, 0)
if choix_sorts_7857 == 0 then
pUnit:RegisterEvent('spell0_7857', 1, 1)
end
end

function mob7857_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7857', math.random(1500, 3000), 1)
end

function mob7857_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7857_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7857_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7857, 1, 'mob7857_Action')
RegisterUnitEvent(7857, 2, 'mob7857_Leave')
RegisterUnitEvent(7857, 3, 'mob7857_Kill')
RegisterUnitEvent(7857, 4, 'mob7857_Die')
